import {baseAjax} from '../baseAjax'
import {exportData} from './commom'

// 修改合作记录
export function updateCooperation (data, successHandle, failHandle) {
  baseAjax('/ent/customer/cooperation', data, 'put', successHandle, failHandle)
}

// 新增合作记录
export function saveCooperation (data, successHandle, failHandle) {
  baseAjax('/ent/customer/cooperation/save', data, 'post', successHandle, failHandle)
}

// 新增合作记录
export function deleteCooperation (id, successHandle, failHandle) {
  let _url = '/ent/customer/cooperation/' + id
  baseAjax(_url, {}, 'delete', successHandle, failHandle)
}

// 导出合作记录
export function exportCooperation (data, fileName) {
  exportData('/ent/customer/cooperation/export', data, fileName)
}
